package com.ais.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ais.service.PersonManage;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

@Controller
@RequestMapping("/System")
public class SystemController {
	public static final String PASSWORD="adminpwd";
	
	@Autowired
	private PersonManage personManage;
	
	@RequestMapping("/login.do")
	public String login(HttpServletRequest request,
			HttpServletResponse response,String username,String password){
		Gson gson = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create();  
	    String json = gson.toJson("success"); 
		return json;
	}
	
}

